import Router from 'vue-router'
import Vue from '../vue'
import App from '../component/app/app.vue'
import CustomList from '../component/activity/custom/custom-list/custom-list.vue'
import PrizeList from '../component/activity/custom/prize-list/prize-list.vue'
import ResultList from '../component/activity/custom/result-list/result-list.vue'
import CodeList from '../component/activity/custom/code-list/code-list.vue'
import MsgList from '../component/activity/custom/msg-list/msg-list.vue'
import FakeRecords from '../component/activity/custom/fake-records/fake-records.vue'
import Course from '../component/activity/custom/result-list/course-manage/course-manage.vue'
import Statistics from '../component/activity/custom/custom-list/statistics/statistics-s1/statistics-s1.vue'

Vue.use(Router)

var app = Vue.extend(App)
var router = new Router()

router.map({
  '/': {
    component: CustomList
  },
  '/prize/:id': {
    component: PrizeList
  },
  '/result/:id': {
    component: ResultList
  },
  '/result/course/:id': {
    component: Course
  },
  '/result/statistics': {
    component: Statistics
  },
  '/code/:id': {
    component: CodeList
  },
  '/msg/:id': {
    component: MsgList
  },
  '/fake/record/:id': {
    component: FakeRecords
  }
})

router.start(app, 'app')
